//
//  NSDate+additions.swift
//  HIG
//
//  Created by arkin on 2016/10/19.
//  Copyright © 2016年 arkin. All rights reserved.
//

import Foundation
import Security

extension NSData {
    
    public func utf8StringValue() -> NSString? {
        return NSString.init(data: self as Data, encoding: String.Encoding.utf8.rawValue)
    }
}

extension Data {
    public func utf8StringValue() -> String? {
        return String.init(data: self, encoding: .utf8)
    }
}
